package interfaces.interfaceprocessor;

import interfaces.classprocessor.Apply;
import interfaces.filters.Processor;

abstract public class StringProcessor implements Processor {
    public String name(){
        return getClass().getSimpleName();
    }
    public abstract String process(Object input);
    public static String s="If she weighs the same as a duck ,she's made of wood";
    public static void main(String[] args){
        Apply.process(new Upcase(),s);
    }
}
class Upcase extends StringProcessor{
    public String process(Object input){
        return ((String)input).toUpperCase();
    }
}
